﻿namespace ZR.Model.Souvenir
{
    /// <summary>
    /// 购物车
    /// </summary>
    [SugarTable("souvenir_cart")]
    public class Cart
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        
        [JsonConverter(typeof(ValueToStringConverter))]
        public long UserId { get; set; }
        
        /// <summary>
        /// 纪念品ID
        /// </summary>
        public int ProductId { get; set; }
        
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
        
        /// <summary>
        /// 是否选择(1:已勾选,0:未勾选)
        /// </summary>
        public string Checked { get; set; }
    }
}